#include "BoundingSphere.h"

const HashedString BoundingSphere::type("BoundingSphere");

const HashedString& BoundingSphere::Type() const
{
	return type;
}

BoundingSphere::BoundingSphere( float radius ) : m_radius(radius)
{
	m_bulletShape = new btSphereShape(radius);
}

float BoundingSphere::Radius() const
{
	return m_radius;
}

std::string BoundingSphere::ToString() const
{
	std::string detail("");
	char buffer[25];
	sprintf_s(buffer, 25, "%.3f", m_radius);
	return detail + buffer;
}